# -*- coding: utf-8 -*-

import requests


if __name__ == "__main__":
    # headers = {'Content-Type': 'text/plain'}
    headers = {'Content-Type': 'application/json'}
    json_data = """
    {
        "name": "lijun",
        "age": 29
    }
    """
    print(json_data)
    r = requests.post("http://127.0.0.1:8020/post_test",
                      data=json_data, headers=headers)
    print(r.content)
